package com.jzl.swing.service;

import java.util.List;

import com.jzl.swing.entity.User;

public interface UserService {
	/**
	 * 注册
	 * @param user
	 * @throws Exception
	 */
	public abstract boolean register(User user)throws Exception;
	/**
	 * 登录
	 * @param user
	 * @throws Exception
	 */
	public abstract boolean login(User user) throws Exception;
	/**
	 * 注销
	 * @param user
	 * @throws Exception
	 */
	public abstract void cancel(User user) throws Exception;
	/**
	 * 查询全部用户
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public abstract List<User> queryUserAll() throws Exception;
	/**
	 * 按用户名查询
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public abstract User queryUser(User user) throws Exception;
	public abstract int insertUser(User user)throws Exception;
	public abstract int deleteUser(User user)throws Exception;
	public abstract int modifyUser(User user)throws Exception;
}
